package gvjclient.actions;

import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;

public class DestinationNumberKeyListener extends KeyAdapter {
	
	@Override
	public void keyTyped(KeyEvent e)
	{
	      char c = e.getKeyChar();
	      System.out.println(c);
	      if (!((c >= '0') && (c <= '9') ||
	         (c == '+') ||
	    	 (c == KeyEvent.VK_BACK_SPACE) ||
	         (c == KeyEvent.VK_DELETE))) {
	        e.consume();
	      }
	}
}
